package com.huluobo.hyj.hyjmodel.contract.Chat

import com.huluobo.hyj.hyjmodel.contract.BasePresenter
import com.hyphenate.chat.EMMessage

/**
 *@author : USER
 *@date : 2020/9/17 17:07
 *@params :
 *@description:
 */
interface ChatContract {
    interface Presenter:BasePresenter{
        fun sendMessage(contact:String,message:String)
        fun addMessage(username:String,message:MutableList<EMMessage>)
    }
    interface View{
        fun onStartSendMessage() //开始发送消息
        fun onSendMessageSuccess() // 发送消息成功
        fun onSendMessageFailed() //发送消息失败
    }

}